package org.jeecg.modules.demo.puInvoice.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: pu_invoice
 * @Author: jeecg-boot
 * @Date:   2021-12-16
 * @Version: V1.0
 */
@Data
@TableName("pu_invoice")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pu_invoice对象", description="pu_invoice")
public class PuInvoice implements Serializable {
    private static final long serialVersionUID = 1L;

	/**订单状态（0：未审，1：已审，2：已关闭）*/
	@Excel(name = "订单状态（0：未审，1：已审，2：已关闭）", width = 15)
    @ApiModelProperty(value = "订单状态（0：未审，1：已审，2：已关闭）")
    @Dict(dicCode= "checkState")
    private java.lang.Integer shenhe;
	/**删除状态（0：正常，1：已删）*/
	@Excel(name = "删除状态（0：正常，1：已删）", width = 15)
    @ApiModelProperty(value = "删除状态（0：正常，1：已删）")
    private java.lang.Integer shanchu;
	/**业务员*/
	@Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String saleman;
	/**预收单据编号*/
	@Excel(name = "预收单据编号", width = 15)
    @ApiModelProperty(value = "预收单据编号")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private java.lang.String receiptNumber;
	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**采购发票记录号*/
	@Excel(name = "采购发票记录号", width = 15)
    @ApiModelProperty(value = "采购发票记录号")
    private java.lang.String puiNo;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private java.lang.String whNum;
	/**入库单编号*/
	@Excel(name = "入库单编号", width = 15)
    @ApiModelProperty(value = "入库单编号")
    private java.lang.String woNo;
	/**采购结算单编号*/
	@Excel(name = "采购结算单编号", width = 15)
    @ApiModelProperty(value = "采购结算单编号")
    private java.lang.String pusNo;
	/**收票金额*/
	@Excel(name = "收票金额", width = 15)
    @ApiModelProperty(value = "收票金额")
    private java.math.BigDecimal puiAmount;
	/**发票号段*/
	@Excel(name = "发票号段", width = 15)
    @ApiModelProperty(value = "发票号段")
    private java.lang.String puiSegNo;
	/**发票张数*/
	@Excel(name = "发票张数", width = 15)
    @ApiModelProperty(value = "发票张数")
    private java.lang.Integer puiShtCount;
	/**税额*/
	@Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal psTax;
	/**记录日期*/
	@Excel(name = "记录日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "记录日期")
    private java.util.Date puiCdate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String poStaff;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;
    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;

    //存货名称
    private String cinvname;

    private String realzb;
    //业务类型
    @Dict(dicCode = "ywlx")
    private String ywlx;

    //业务类型
    @Dict(dicCode = "fplx")
    private String fplx;

    private BigDecimal htjjia;

    private BigDecimal yjjine;

    private BigDecimal supamount;

    private BigDecimal shouyi;

    private BigDecimal adjust;
    /**订单总量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "订单总量")
    private java.math.BigDecimal qoQuantity;
    //含税单价
    private java.math.BigDecimal hsdj;
    /**含税金额*/
    private java.math.BigDecimal hsje;
    /**无税单价*/

    private java.math.BigDecimal wsdj;
    /**无税金额*/
    private java.math.BigDecimal wsje;
    private String chumdwmc;
    /**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private String poOrder;

    /**订单总量*/
    @Excel(name = "订单总量", width = 15)
    @ApiModelProperty(value = "订单总量")
    private BigDecimal poTotail;


    private BigDecimal fpsl;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yfsyje;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yfuseje;

    private String remark;

    private BigDecimal ykTotal;
    private BigDecimal syTotal;
    private BigDecimal ykje;
    private BigDecimal syje;
    private String fpfj;
    @Excel(name = "预计付款日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "预计付款日期")
    private Date yjfk;

    private Integer yfhx;

    /**销售用开票数量*/
    @Excel(name = "销售用开票数量", width = 15)
    @ApiModelProperty(value = "销售用开票数量")
    private BigDecimal xsFpsl;

    /**
     * 租户ID
     */
    private Integer tenantId;
    private  String tradecode;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;

    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;

}
